Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert CharPos to number in renderInterpreter. #116

Merged
merged 2 commits into from
Sep 27, 2023

Conversation

gavinleroy
Copy link
Collaborator

The issue from #115 is because the interpreter was using a CharPos[] as the type of WidgetRanges.

I added the type annotation to prevent it from getting inferred as type any, and then the fix in the else branch is to compute the byte position from the CharPos.

@gavinleroy gavinleroy merged commit f8effad into cognitive-engineering-lab:main Sep 27, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant